import QtQuick 1.0
import "js/G.js" as G

Image {
    id: imageSignup
    source: "Images/buttonSignup.png"
    opacity: 1
    Behavior on opacity { NumberAnimation { duration: 100  } }
    MouseArea {
        id: mouseRegion
        anchors.fill: parent
        onClicked: {
            id: mouseRegion
            idLoginSignup.state = "SigningIn"
            signupWorker.sendMessage({'username': textInputUserName.text, 'password': textInputPassword.text, 'g': G.g});
        }
    }
    states: [
        State {
            name: "Pressed"
            when: mouseRegion.pressed == true
            PropertyChanges { target: imageSignup; opacity: 0.5 }
        }
    ]


}
